<script type="text/template" id="dialogComManagementTemplate">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title"><%= APP.getTrans('USER_PULPIT_LIST', 'TITLE') %></h4>
      </div>
      <form id="userPulpitListForm">
        <div class="errorBox"></div>
        <div class="modal-body">
          <% _.each(applications, function(application) { %>
            <label class="checkbox"><input class="appVisible" type="checkbox" value="<%= application.id %>" <% if (application.userPulpit.visible) { %>checked="checked"<% } %>><%= application.name %></label>
          <% }); %>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-primary" data-dismiss="modal"><%= APP.getTrans('USER_PULPIT_LIST', 'CANCEL') %></button>
          <button type="submit" class="btn btn-default"><%= APP.getTrans('USER_PULPIT_LIST', 'SAVE') %></button>
        </div>
      </form>
    </div>
  </div>
</script>